using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class UpgradeWeakpointAnalyzer:Upgrade {

	protected override void MobLateDamagingEventHandler(object _sender,DamageEventArgs e) {
		base.MobLateDamagingEventHandler(_sender,e);
		Mob sender = _sender as Mob;
		if(!e.stat.attackerProjectile) return;
		if(e.stat.crit) e.stat.amount.AddMultiply(1.2f,0);
		if(e.stat.attackerProjectile.stat.inaccuracy<0.5f&&Utility.Chance(0.5f)) sender.buffs[typeof(BuffVulnerability)].stacks+=1;
	}


}
